package com.hnevc.charpt3.car;

public class Program {
	public static void main(String[] args){
		SubCar audi = new SubCar();
		audi.mark = "奥迪";
		audi.price = 50;
		audi.speed = 80;
		
		System.out.println(audi.speed);
		audi.drive();
		audi.speedChage(120);
		System.out.println(audi.speed);
		
		
		SubCar benzi = new SubCar();
		benzi.mark = "奔驰";
		benzi.price = 100;
		benzi.speed = 90;
		System.out.println(benzi.speed);
		audi.drive();
		audi.speedChage(120);
		System.out.println(benzi.speed);
	}
}
